﻿//
// Artist.cs: Represents an artist in the library.
//
// Copyright 2010 Michael Goethe
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace S9PalCommon.ArtistLibrary
{
    /// <summary>
    /// Represents an artist in the library.
    /// </summary>
    [Serializable]
    public class Artist
    {
        #region Fields

        private SortedList<String, Album> albums = new SortedList<String, Album>();
        private String name = null;
        private List<ArtistPhoto> photos = new List<ArtistPhoto>();

        #endregion

        #region Constructors

        /// <summary>
        /// Create an artist with the specified name.
        /// </summary>
        /// <param name="artistName">Name of the artist.</param>
        public Artist(String artistName)
        {
            Albums = new SortedList<String, Album>();
            Name = artistName;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Gets or sets the albums belonging to the artist.
        /// </summary>
        public SortedList<String, Album> Albums
        {
            get
            {
                return albums;
            }
            set
            {
                albums = value;
            }
        }

        /// <summary>
        /// Gets or sets the name of the artist.
        /// </summary>
        public String Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        /// <summary>
        /// Gets or sets the photos for the artist.
        /// </summary>
        public List<ArtistPhoto> Photos
        {
            get
            {
                return photos;
            }
            set
            {
                photos = value;
            }
        }

        #endregion
    }
}
